<div>
    <div class="flex justify-start">
        <div style="padding-right:0px;width: 200px;" class="room-floor-unit-tree">
            <vc:create path="car/communityParkingTree"></vc:create>
        </div>
        <div class="margin-top-xs margin-left-sm" style="flex-grow: 1;">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group input-group">
                                <input type="text" :placeholder="vc.i18n('请输入车牌号','adminCar')"
                                    v-model.trim="adminCarInfo.conditions.carNumLike" class="form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写车位编号','adminCar')" class=" form-control"
                                    v-model.trim="adminCarInfo.conditions.num">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                v-on:click="_queryCommunityPublicityMethod()">
                                <vc:i18n name="查询" namespace="adminCar"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="小区车辆" namespace="adminCar"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="hc-table-div">

                        <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                            <thead>
                                <tr>
                                    <th class="text-center">
                                        <vc:i18n name="车牌号" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="成员车辆" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="房屋号" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="车牌类型" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="车辆类型" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="颜色" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="业主" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="车位" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="有效期" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="状态" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="备注" namespace="adminCar"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="操作" namespace="adminCar"></vc:i18n>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="car in adminCarInfo.cars">
                                    <td class="text-center">{{car.carNum}}
                                    </td>
                                    <td class="text-center">
                                        {{car.memberCarCount || 0}}
                                    </td>
                                    <td class="text-center">
                                        <div style="width: 150px;">
                                            {{car.roomName}}
                                        </div>
                                    </td>
                                    <td class="text-center" v-if="car.leaseType == 'T'">
                                        临时车
                                    </td>
                                    <td class="text-center" v-else>
                                        {{car.leaseTypeName}}
                                    </td>
                                    <td class="text-center">
                                        {{car.carTypeName || '-'}}
                                    </td>
                                    <td class="text-center">
                                        {{car.carColor || '-'}}
                                    </td>
                                    <td class="text-center hand">
                                        <div class="">
                                            <a target="_blank"
                                                :href="'/#/pages/owner/adminOwnerDetail?ownerId='+car.ownerId">
                                                {{car.ownerName}}({{car.link}})
                                            </a>
                                        </div>
                                    </td>
                                    <td v-if="car.areaNum && car.state == '1001'" class="text-center">
                                        {{car.areaNum}}-{{car.num}}
                                    </td>
                                    <td v-else class="text-center">
                                        车位已释放
                                    </td>
                                    <td class="text-center">
                                        {{car.startTime}}</br>~{{car.endTime}}
                                    </td>
                                    <td class="text-center" v-else>
                                        --
                                    </td>
                                    <td class="text-center">
                                        {{_getCarState(car)}}
                                        <span v-if="car.iotStateName">
                                            ({{car.iotStateName}})
                                        </span>
                                    </td>
                                    <td class="text-center">
                                        {{car.remark}}
                                    </td>
                                    <td class="text-center">
                                        <div class="btn-group">
                                            <button class="btn-white btn btn-xs"
                                                v-on:click="_toCarDetailPage(car)">
                                                <vc:i18n name="详情" namespace="adminCar"></vc:i18n>
                                            </button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
</div>